Skip to content

fix potential crash during shutdown#6

Merged
gms1 merged 1 commit intomainfrom
fix/potential_crash
Apr 4, 2026
Merged

fix potential crash during shutdown#6
gms1 merged 1 commit intomainfrom
fix/potential_crash

Conversation

@gms1
Copy link
Copy Markdown
Owner

@gms1 gms1 commented Apr 4, 2026

During Node.js/Electron shutdown, when using NAPI_CPP_EXCEPTIONS, we must take care to not throw any exceptions.
But when napi_call_function returns napi_cannot_run_js, this throws a C++ exception, when NAPI_CPP_EXCEPTIONS is enabled.

@gms1 gms1 merged commit fa937a7 into main Apr 4, 2026
18 checks passed
@gms1 gms1 deleted the fix/potential_crash branch April 4, 2026 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant